package com.xishu.entity.shop;

import com.xishu.annotation.oplog.OplogAnnotation;
import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

@Entity(name = "shop_ticket_mapping")
public class ShopTicketMapping extends AbstractEntity {
    private static final long serialVersionUID = 5564422903570845575L;

    @ApiModelProperty(value = "优惠卷的名称")
    private String ticketName;

    @ApiModelProperty(value = "优惠卷的ID")
    private Long ticketId;

    @ApiModelProperty(value = "分店的名称")
    private String shopName;

    @ApiModelProperty(value = "分店的ID")
    private Long shopId;

    @ApiModelProperty(value = "优惠卷类型,1金额卷，2折扣卷，3消费后金额")
    @OplogAnnotation(fieldName = "优惠卷类型")
    private Integer ticketType;

    public Integer getTicketType() {
        return ticketType;
    }

    public void setTicketType(Integer ticketType) {
        this.ticketType = ticketType;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketId(Long ticketId) {
        this.ticketId = ticketId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
